import request from '@/utils/request'

// 查询标段清单列表
export function listBoq(query) {
  return request({
    url: '/project/boq/list',
    method: 'get',
    params: query
  })
}

// 查询标段清单列表
export function listBidBoq(query) {
  return request({
    url: '/project/boq/listBidBoq',
    method: 'get',
    params: query
  })
}

// 查询标段清单大类列表
export function selectBigTypeList(query) {
  return request({
    url: '/project/boq/selectBigTypeList',
    method: 'get',
    params: query
  })
}

// 查询标段清单列表
export function getTreeList(query) {
  return request({
    url: '/project/boq/getTreeList',
    method: 'get',
    params: query
  })
}

// 查询标段清单列表
export function getTreeListExcludeChild(query) {
  return request({
    url: '/project/boq/getTreeListExcludeChild',
    method: 'get',
    params: query
  })
}

// 查询标段清单详细
export function getBoq(id) {
  return request({
    url: '/project/boq/' + id,
    method: 'get'
  })
}

// 新增标段清单
export function addBoq(data) {
  return request({
    url: '/project/boq',
    method: 'post',
    data: data
  })
}

// 修改标段清单
export function updateBoq(data) {
  return request({
    url: '/project/boq',
    method: 'put',
    data: data
  })
}

// 删除标段清单
export function delBoq(id) {
  return request({
    url: '/project/boq/' + id,
    method: 'delete'
  })
}

// 清空标段清单
export function clean(data) {
  return request({
    url: '/project/boq/clean',
    method: 'post',
    params: data
  })
}

// 汇总标段清单
export function summary(data) {
  return request({
    url: '/project/boq/summary',
    method: 'post',
    params: data
  })
}

// 导出标段清单
export function exportBoq(query) {
  return request({
    url: '/project/boq/export',
    method: 'get',
    params: query
  })
}
